import 'package:daoyi_ui_admin_getx/app/common/utils/common_toast_util.dart';
import 'package:daoyi_ui_admin_getx/app/widgets/common_floating_action_button_widget.dart';
import 'package:daoyi_ui_admin_getx/generated/locales.g.dart';
import 'package:flutter/material.dart';

import 'package:get/get.dart';

import 'productions_publish_controller.dart';

class ProductionsPublishView extends GetView<ProductionsPublishController> {
  const ProductionsPublishView({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(LocaleKeys.pages_production_publish_title.tr),
        centerTitle: true,
      ),
      floatingActionButton: CommonFloatingActionButtonWidget(
        LocaleKeys.buttons_submit.tr,
        () {
          CommonToastUtil.showToast(LocaleKeys.actions_success.tr);
        },
      ),
      floatingActionButtonLocation: FloatingActionButtonLocation.centerFloat,
      body: const Center(
        child: Text(
          'ProductionsPublishView is working',
          style: TextStyle(fontSize: 20),
        ),
      ),
    );
  }
}
